import React from 'react'
import RcPagination from './Pagination'
import {
	Icon
} from 'antd'

export default class Pagination extends React.Component {
	static defaultProps = {
		prefixCls: 'x-page',
		selectPrefixCls: 'x-page-select',
		simple: true,
		showQuickJumper: {
			goButton: <Icon type="search" />
		}
	};
	getIconsProps = prefixCls => {
		const firstIcon = (
	        <Icon type="vertical-right" />
		);
		const prevIcon = (
	        <Icon type="left" />
		);
		const nextIcon = (
	        <Icon type="right" />
		);
		const lastIcon = (
	        <Icon type="vertical-left" />
		);
		return {
			firstIcon,
			prevIcon,
			nextIcon,
			lastIcon
		};
	};
	render() {
		const {
			prefixCls
		} = this.props
		return (
			<RcPagination 
				{...this.getIconsProps(prefixCls)}
				{...this.props}
			/>
		)
	}
}